package com.example.dao;

import com.example.pojo.Record;
import com.example.pojo.group;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface RecordDao {
    int insert(Record record);
    List<Record> findAll();
    List<Record> find(String user_name);
    int insertSelective(Record record);
    List<group> group();
    List<Record> findByKind(@Param("user_name") String user_name, @Param("kind") String kind);
    List<Record> findBy(@Param("kind") String kind);

    Record findRrcord(@Param("user_name") String user_name,
                      @Param("name") String name,
                      @Param("number") String number,
                      @Param("kind") String kind,
                      @Param("time") String time);
    int delete(Record record);
}